const express = require("express");
const router = express.Router();
const loginHandler = require("../router_handler/login");

const expressJoi = require("@escook/express-joi");
const userLimit = require("../limit/user");
router.post("/register", expressJoi(userLimit.register_limit), loginHandler.register);
router.post("/login", expressJoi(userLimit.login_limit), loginHandler.login);
router.post("/verifyAccount", expressJoi(userLimit.email_limit), loginHandler.verifyAccount);
module.exports = router;
